﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Koonsoft.HYCRM.BLL;

public partial class Statistic_AddOrderRemark : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request["orderId"] != null)
            {
                Label1.Text = "订单编号：" + Request["orderId"].ToString();
                try
                {

                    TextBox1.Text = new OrderBLL().GetOrderExpansion(Request["orderId"].ToString()).Remark;
                }
                catch (Exception)
                {
                    
                }
            }
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        if (Request["orderId"] != null)
        {
            try
            {
                new OrderBLL().UpdateOrderExpansionRemark(Request["orderId"].ToString(), TextBox1.Text);
                AlterAndRedirect("修改成功", "MonthSheet.aspx");
            }
            catch (Exception)
            {
               AlertMsg("修改失败，请联系管理员");
            }
        }
    }
}